package com.sky.utils;

import com.sky.dto.EmployeeDTO;
import com.sky.vo.EmployeeLoginVO;

public class EmployeeHolder {
    private static final ThreadLocal<EmployeeLoginVO> THREAD_LOCAL = new ThreadLocal<>();
    public static void saveEmployeeLoginVO(EmployeeLoginVO employeeLoginVO) {
        THREAD_LOCAL.set(employeeLoginVO);
    }
    public static EmployeeLoginVO getEmployeeLoginVO() {
        return THREAD_LOCAL.get();
    }
    public static void removeEmployeeLoginVO() {
        THREAD_LOCAL.remove();
    }
}